import request from '@/utils/request'

// 获取策略列表
export const getPolicyList = params => request.get('/vm-service/policy/search', { params })

// 新增策略
export const addPolicy = data => request.post('/vm-service/policy', data)

// 修改策略
export const modifyPolicy = data => request.put(`/vm-service/policy/${data.policyId}`, data)

// 删除策略
export const delPolicy = params => request.delete(`/vm-service/policy/${params.policyId}`, { params })

// 根据策略搜索售货机
export const getPolicyDetail = params => request.get(`/vm-service/policy/vmList/${params.policyId}`, { params })
